package cn.wsalix.shop.status;

public enum ShopEnum {
	edit("0", "编辑"), ready("2", "待审核"), unPass("3", "审核不通过"), release("2", "发布"), delete("3", "删除"), close(
			"5", "关闭");
	private String code;
	private String title;

	ShopEnum(String code, String title) {
		this.code = code;
		this.title = title;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public static ShopEnum findByCode(String code) {
		for (ShopEnum userKind : ShopEnum.values()) {
			if (userKind.getCode().equals(code)) {
				return userKind;
			}
		}
		return null;
	}

}
